# -*- coding: utf-8 -*-
"""
author:码同学 极光
date:2023-06-05
desc: 
sample: 
"""
import random

data_list = ['极光', 'zhangsan', '李四', 'mtx', '王五']
# print(random.choice(data_list))

while True:
    message = input("输入quit 退出，输入其他按钮抽奖")
    if message == 'quit':
        print('活动介绍')
        break
    name = random.choice(data_list)
    print(f"恭喜{name}获奖了")
    # 防止重复抽奖
    data_list.remove(name)
    if len(data_list) == 0:
        print("活动结束")
        break
